package bdqn.t09.service.impl;

import bdqn.t09.dao.HatProvinceMapper;
import bdqn.t09.pojo.HatProvince;
import bdqn.t09.service.HatProvinceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class HatProvinceServiceImpl implements HatProvinceService {
    @Resource
    private HatProvinceMapper hatProvinceMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return hatProvinceMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HatProvince record) {
        return hatProvinceMapper.insert(record);
    }

    @Override
    public int insertSelective(HatProvince record) {
        return hatProvinceMapper.insertSelective(record);
    }

    @Override
    public HatProvince selectByPrimaryKey(Integer id) {
        return hatProvinceMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HatProvince record) {
        return hatProvinceMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HatProvince record) {
        return hatProvinceMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<HatProvince> selectAllPrimary() {
        return hatProvinceMapper.selectAllPrimary();
    }
}
